package com.woniuxy.microsysserver.feign;

import com.woniuxy.bean.BillBean;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

//钱包接口
@FeignClient(value = "cd-finance-micro-wallet-server")
public interface WalletFeign {
    @PostMapping(value = "/bill/createFakeOrder", produces = MediaType.APPLICATION_JSON_VALUE)
    String createFakeOrder (@RequestBody BillBean billBean);

    @PostMapping(value = "/bill/selectNewOrder", produces = MediaType.APPLICATION_JSON_VALUE)
    List<BillBean> selectNewOrder (@RequestBody BillBean billBean);
}
